// 1.使用commonjs的模块化规范
const {add, mul} = require('./js/mathUtil.js');
console.log(add(20, 30));
console.log(mul(20, 30));

// 2.使用ES6的模块化规范
// export 导出的要有{}
// export default 导出的不能有{}
import {name, age} from "./js/info";
import aa from "./js/info2"
console.log(name);
console.log(age);
console.log(aa);